package com.hroa.query;

public class BaseQuery {

    /**
     * 页码
     */
    private int pageNo   = 1;

    /**
     * 每页大小，默认10个
     */
    private int pageSize = 10;

    public int getPageNo() {
    	if(pageNo <= 0){
    		pageNo = 1 ;
    	}
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
}
